#ifndef _CKMSG_H_
#define _CKMSG_H_



#include <string>
#include <vector>

namespace K_Engine
{ 
    class CKMsg
    {
    public:
        const static int Error = -1;
        const static int Work = 1;
        const static int Return = 2;
        const static int Distributed = 3;
        
    private:
        int m_nType;
        std::string m_strErrorMSG;
        std::string m_strRuleName;
        std::string m_strParams;
    
    public:
        CKMsg();
        void SetType(int type);
        void SetRuleName(std::string rulename);
        void SetParams(std::string params);
       
    public:
        int GetType();
        std::string GetRuleName();
        std::string GetParams();
        
    public:
        std::string FormatMSG();
        static void FormatResultMSG(std::string strResult, std::vector<std::string> &v);
        bool ParserMSG(std::string msg);
        std::string GetErrorMSG();
    
    };
}

#endif // ! _CKMSG_H_